import { Injectable } from '@angular/core';

@Injectable()
export class DataStorageUtil {
  constructor() { }
  private storage = sessionStorage;

  set(key:string,value:string){
    this.storage.setItem(key,value);
  }

  get(key : string){
    return this.storage.getItem(key);
  }
  clear(){
    this.storage.clear();
  }
  remove(key:string){
    this.storage.removeItem(key);
  }

}
